"DESCRIPTION 1"="This plug-in can be used to change the picture that is displayed when starting Windows."
"DESCRIPTION 2"="Note: The picture should be 320x400 pixels with 256 colors. If the image is not in this format, then *no* image will be displayed on startup!"
"DESCRIPTION 3"="If you have changed the picture using X-Setup and want the default picture back, leave the field blank but remember that this will DELETE your current logon picture."
"COMMENT 1"="Bug fixes by Neil Turner (totalxs@hotmail.com)"
"CONTACTURL"="http://www.xteq.com"
"AUTHOR"="Xteq Systems"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
'Called when the Plugin is started
SUB Plugin_Initialize
END SUB
'Called when the Plugin should validate the Data the user has entered
SUB Plugin_CheckData(ElementIndex)
END SUB
'Called when the Plugin should apply the changes
SUB Plugin_Apply(ElementIndex,ElementSubIndex)
s=GetUIElement(1)
if len(s)>0 then
Call DoWork("LOGO.SYS","LOGO.XSB",s)
else
Call GetFileBack("LOGO.SYS","LOGO.XSB")
end if
Call Restart
END SUB
'Called when the Plugin is about to be removed from memory
SUB Plugin_Terminate
END SUB
'User defined SUB's
SUB GetFileBack(FileName,BackupFile)
s1="C:\" & FileName
s2="C:\" & BackupFile
'if backup exists, execute function
if FileExists(s2) then
Call FileSetAttribute(s1,"S-")
Call FileSetAttribute(s1,"R-")
Call FileSetAttribute(s1,"H-")
Call FileDelete(s1)
Call FileCopy(s2,s1)
MsgInformation "Original file restored!"
else
MsgError "Backup of original file not found, unable to restore it."